public class X {
    public static int num = 1;
    public int num1 = 100;
    public static void tell() {
        System.out.println("父类静态方法"+num);
    }
    public X() {
        System.out.println("父类构造"+num1);
    }
}

class Z extends X {
    public static int num2 = 200;
    public int num4 = 500;
    public static void tell2() {
        System.out.println("子类静态方法"+num2);
    }
    public Z() {
        System.out.println("子类构造"+num4);
    }
}

class Test1 {
    public static void main(String[] args) {
        new Z();
    }
}